using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UpgradeBottomLine:Upgrade {

	protected override void ReloadStartEventHandler(object _sender,ReloadStartEventArgs e) {
		base.ReloadStartEventHandler(_sender,e);
		if(weaponWeapon.currentClip.content.Count==0) {
			e.stat.overrideNotToLoad=true;
			weaponWeapon.currentClip.AddRound(0,false);
		}
	}

	public override void Update(object sender,WeaponEventArgs e) {
		base.Update(sender,e);
		if(weaponWeapon.currentClip.content.Count==0)
			weaponWeapon.currentClip.AddRound(0,false);
	}

	protected override void ShootingEventHandler(object _sender,ShootEventArgs e) {
		base.ShootingEventHandler(_sender,e);
		if(weaponWeapon.currentClip.content.Count>0) return;
		if(e.stat.ammoConsumption==0) return;
		weaponWeapon.currentClip.AddRound(0,false);
		e.stat.projectileCount.AddMultiply(0,float.PositiveInfinity);
	}

}